OBJS = main.o Simulator.o EventHandler.o
CC = g++
DEBUG = -g
LIBS = -lSDL -lSDLmain -lGL -lGLU
LFLAGS = -Wall $(DEBUG) $(LIBS)
CFLAGS = -Wall -c $(DEBUG)


all : runsim

clean : 
	\rm *.o *~ runsim

runsim : $(OBJS)
	$(CC) $(LFLAGS) $(OBJS) -o runsim

main.o : main.cpp EventHandler.h
	$(CC) $(CFLAGS) main.cpp

Simulator.o: Simulator.cpp Simulator.h EventHandler.h
	$(CC) $(CFLAGS) Simulator.cpp

EventHandler.o: EventHandler.cpp EventHandler.h
	$(CC) $(CFLAGS) EventHandler.cpp
